import request from '@/utils/request'

// 获取banner
export function banners (data) {
  return request({
    url: '/front/banner/banners',
    method: 'POST',
	data,
	isAuth: false
  },1)
}

// 热门搜索
export function hotSearchKey () {
  return request({
    url: '/front/searchRecord/hotSearchKey',
    method: 'GET'
  })
}

// 搜索记录
export function searchRecord () {
  return request({
    url: '/front/searchRecord/searchRecord',
    method: 'GET'
  })
}

// 清空搜索记录
export function clearSearchRecord () {
  return request({
    url: '/front/searchRecord/clearSearchRecord',
    method: 'GET'
  })
}

// 我要合作
export function apply (data) {
  return request({
    url: '/front/coopreate/apply',
    method: 'POST',
	data
  })
}

// 上传文件单张
export const defaultAndSuffix = '/upload/file/oss/defaultAndSuffix'